package dayone;

import java.util.Scanner;

public class caibao {
    public static void main(String[] args) {
        int a =(int)(Math.random()*6)+1;
        int b =(int)(Math.random()*6)+1;
        int c =(int)(Math.random()*6)+1;
    Scanner sc = new Scanner(System.in);
        System.out.println("押的是");
        String ya = sc.next();
        boolean flag = false;
switch (ya){
    case "豹子" :
        flag = a==b && b==c;
        break;
    case "大":
        flag = a+b+c > 9;
        break;
    case "小":
        flag = a+b+c < 9;
        break;
    default:
        System.out.println("请重新押宝");
        break;
}
        System.out.println("a,b,c分别是"+ a + " , " + b + " , " + c);
        System.out.println(flag ? "押对了":"押错了");
    }
}
